<?php
require_once('../class/config.php');
require_once(SITE_PATH . '/class/DB/db_config.php');
$queue = new Queue($dataBase);

$tmpDate = new DateTime();
$client = new Client_NO2_Client('client_id', 'client name_' . date('H:i:s'));
$oldES = new Client_NO2_ES(2, 'old ES');
$newES = new Client_NO2_ES(3, 'new ES');
$changeDate = $tmpDate->format(DATE_ATOM);
$supplierChange = new Client_NO2_SupplierChange($client, $oldES, $newES, $changeDate);

//$queue->add('Client_NO2_T2NO2ApiService', 'notifyOfClientESChange', $supplierChange);
//$pc = new Portal_Client('T2NO2.12.123', 'T2ES1');
//$queue->add('Portal_Client', 'save', $pc);


$queue->runAll();
echo "\n";
echo 'Done: ' . date('H:i:s');
